<!DOCTYPE html>
<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
<html>
<head>
    <meta charset="utf-8">
    <title>质量信得过职工管理基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/forms/currencyCss.css">
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .qbdms-TBinformation {
            margin-left: 0;
            font-size: 15px
        }
        .treeFormPreview{position: unset;padding: 0;padding-top: 12px;margin-top: 80px;}
        .fillBtn{
            background:rgba(38,130,255,1) !important;
        }
    </style>
</head>
<body class="listBody qbdms-particulars">
<#if flag !="1"&&flowStatus!='0'>
<div id="button" style="padding: 20px">
    <a class="layui-btn layui-btn-sm fillBtn" lay-event="" id="detail">
        <i class="iconfont iconicon_file"></i>
        <span>运行明细</span>
    </a>
    <a class="layui-btn layui-btn-sm flowChart fillBtn" lay-event="flowChart">
        <i class="layui-icon layui-icon-picture-fine"></i>
        <span >流程图</span>
    </a>
    <a class="layui-btn layui-btn-sm fillBtn" lay-event="" id="taskOpinion">
        <i class="iconfont iconicon_compile"></i>
        <span>审批历史</span>
    </a>
</div>
</#if>
<div class="qbdms-bodyDiv">
    <div class="qbdms-backDiv">
        <div class="layui-table-view-body" style="padding: 0 24px 24px;">
            <div class="qbdms-formTitle" style="border-bottom: 1px solid #E5F0FF">质量信得过职工信息 <#if flag !="1"><i class="qbdms-returnOn closeWindow">返回</i></#if></div>
            <form class="layui-form treeFormPreview" requrl="${ctx}/qbdms/wQbdTrustPeople/get" lay-filter="wQbdTrustPeopleDataForm">
                <div class="" style="width: 100%;overflow-x: auto">
                    <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                            <tr id="tbxx"></tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">密级<span style="color: red;">*</span></td>
                                <td colspan="5"><@secSelect.sec_select data_src=1 required=true name="secret"/></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">姓名<span style="color: red;">*</span></td>
                                <td name="userName" colspan="5"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">性别<span style="color: red;">*</span></td>
                                <td colspan="5"><@dicSelect.dic name="sex" nodeKey="xb" css="layui-input textInput" /></td>
                            </tr>

                            <tr>
                                <td class="qbdms-zeroTable-lable">单位<span style="color: red;">*</span></td>
                                <td colspan="5" name="company"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">工作岗位<span style="color: red;">*</span></td>
                                <td colspan="5"><@dicSelect.dic name="station" nodeKey="gzgw" css="layui-input textInput"/></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">职务<span style="color: red;">*</span></td>
                                <td colspan="5"><@dicSelect.dic name="job" nodeKey="zw" css="layui-input textInput"/></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">年度<span style="color: red;">*</span></td>
                                <td colspan="5" name="years"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">季度<span style="color: red;">*</span></td>
                                <td colspan="5"><@dicSelect.dic name="quarter" nodeKey="jd" css="layui-input textInput"/></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">申报类别<span style="color: red;">*</span></td>
                                <td colspan="5"><@dicSelect.dic name="kind" nodeKey="sblb" css="layui-input textInput"/></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">等级<span style="color: red;">*</span></td>
                                <td colspan="5"><@dicSelect.dic name="awardlevel" nodeKey="dj" css="layui-input textInput"/></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">申报理由（简述）</td>
                                <td colspan="5" name="reason"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">详细描述</td>
                                <td colspan="5" name="detailDescribe"></td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">备注</td>
                                <td colspan="5" name="remark"></td>
                            </tr>
                            <#if flag =="1">
                            <tr>
                                <td class="qbdms-zeroTable-lable">
                                    研究室主管领导审批
                                </td>
                                <td colspan="5">
                                    <#list taskOpinionNewList as taskOpinionNewList>
                                    <#if taskOpinionNewList.taskName == "研究室主管领导审批">
                                    <p>${taskOpinionNewList.opinion}</p><br/>
                                    <p style="text-align:right;">审批人:${taskOpinionNewList.exeFullname}&nbsp&nbsp&nbsp&nbsp
                                        日期:${(taskOpinionNewList.endTime?string("yyyy-MM-dd"))!}</p>
                                </#if>
                            </#list>
                            </td>
                            </tr>
                            <tr>
                                <td class="qbdms-zeroTable-lable">
                                    质量综合助理员确认
                                </td>
                                <td colspan="5">
                                    <#list taskOpinionNewList as taskOpinionNewList>
                                    <#if taskOpinionNewList.taskName == "质量综合助理员确认">
                                    <p>${taskOpinionNewList.opinion}</p><br/>
                                    <p style="text-align:right;">审批人:${taskOpinionNewList.exeFullname}&nbsp&nbsp&nbsp&nbsp
                                        日期:${(taskOpinionNewList.endTime?string("yyyy-MM-dd"))!}</p>
                                </#if>
                            </#list>
                            </td>
                            </tr>
                        </#if>
                        </tbody>
                    </table>
                </div>
                <#if isClose != 'true' && flag !="1">
                    <div class="layui-form-item btnformItem">
                        <p>
                            <button type="reset" id="closeWindow" class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回</button>
                        </p>
                    </div>
                </#if>
            </form>
        </div>
    </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'setter', 'form', 'layer', 'upload', 'common', 'propsHandle', 'jquery', 'publicMethods'], function () {
        var laydate = layui.laydate;
        var common = layui.common;
        var publicMethods = layui.publicMethods;
        var $ = layui.jquery;
        var upload = layui.upload;
        var setter = layui.setter;
        var form = layui.form;
        var propsHandle = layui.propsHandle;
        var defProps = {
            //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
            viewMould: 'moulds/', // 组件模块 存放文件 *****
            selectorBtn: '.selectorBtn'
        };
        var temQuery = new propsHandle();
        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = '${ctx}/qbdms/wQbdTrustPeople/view/list';
        });

        common.updateForm({
            name: 'wQbdTrustPeopleDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback: function (data) {
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</td>");
                if (data.data.money == null){
                    data.data.money = "";
                }
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
            }
        });

        if ("${isClose}" == "true") {
            $(".closeWindow").hide();
        }
        publicMethods.bottomFixd()
        $("body *").not("#closeWindow").attr("disabled", "disabled");
        $(".uploadFileCont .qbdms-fileUp,.uploadFileCont i,.addFormTr1").hide();
        $(".uploadFileCont").each(function () {
            if ($(this).children('.uploadFileList').children().length == 0) {
                $(this).children('.uploadFileList').append("<span style='color: #C0C4CC'>未上传</span>")
            }
        })



        var flag="${flag}";
        var procInstId = "${processRun.procInstId}";
        var runId = "${runId}";
        if (runId == null || runId == '') {
            $("#hideAndShow").show();
        }

        //运行明细
        $("#detail").click(function () {
            layer.open({
                type: 2,
                title: "运行明细",
                area: ['80%', '80%'],
                btn: ['关闭'],
                skin: 'btn-close',
                btnAlign: 'c',
                content: serverPath.qbdmsPath +'/workflow/processRun/view/detail?runId=' + runId
            });
        });

        //审批历史
        $("#taskOpinion").click(function () {
            parent.layer.open({
                type: 2,
                title: "审批历史",
                area: ['950px', '585px'],
                content: serverPath.qbdmsPath +"/workflow/taskOpinion/view/list?runId=" + runId
            })
        });

        //流程图
        $(".flowChart").click(function () {
            parent.layer.open({
                type: 2,
                title: "流程图",
                shade: 0.3,
                left: 200,
                area: ['1000px', '600px'],
                content: serverPath.qbdmsPath +"/workflow/processRun/view/bpmImg?procInstId="+procInstId+"&runId="+runId,
                btn:['','关闭'],
                success:function (layero,index) {
                    $(layero).find("a.layui-layer-btn0").hide();
                }
            });
        });
    });
</script>
</body>
</html>